<template>
  <div>
    
  </div>
</template>

<script>
export default {
  name: 'index',
  props:{
      deleteParams:{
          type:Object
      }
  },
  methods:{
      delBox(obj){
          this.$confirm(obj.title, '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning'
            }).then(() => {
                this.$emit('deleMess','del')
            }).catch(() => {
                this.$message({
                type: 'info',
                message: '已取消删除'
                });          
            });
      }
  },
  watch:{
      deleteParams(val){
          if(val.title){
              this.delBox(val)
          }
      }

  }
}
</script>

<style lang="less" scoped>
</style>
